package com.springup.trade.exception;

import lombok.Data;

@Data
public class RequestException extends RuntimeException {

    private int code;

    public RequestException(int code, String message) {
        super(message);
        this.code = code;
    }

    public RequestException(int code, String message, Throwable throwable) {
        super(message, throwable);
        this.code = code;
    }
}